/*    */ package dm.sql;
/*    */ 
/*    */ import dm.jdbc.dbaccess.Const;
/*    */ import dm.jdbc.driver.DmdbConnection_bs;
/*    */ import dm.jdbc.innerData.DmdbConnAgent;
/*    */ import java.io.Serializable;
/*    */ import java.sql.SQLException;
/*    */ import java.util.ResourceBundle;
/*    */ 
/*    */ public class StructDescriptor
/*    */   implements Serializable
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/* 14 */   public TypeDescriptor m_typeDesc = null;
/*    */   
/*    */   public StructDescriptor(String fulName, DmdbConnAgent connAgent) throws SQLException
/*    */   {
/* 18 */     if ((fulName == null) || (fulName.equalsIgnoreCase(""))) {
/* 19 */       throw new SQLException(Const.res.getString("error.invalidDescName"));
/*    */     }
/* 21 */     if ((connAgent == null) || (connAgent.getRealConn().isClosed())) {
/* 22 */       throw new SQLException(
/* 23 */         Const.res.getString("error.connectionClosedOrNotBuild"));
/*    */     }
/* 25 */     this.m_typeDesc = new TypeDescriptor(fulName, connAgent.getRealConn());
/*    */     
/* 27 */     this.m_typeDesc.parseDescByName();
/*    */   }
/*    */   
/*    */   public static StructDescriptor createDescriptor(String fulName, DmdbConnAgent connAgent) throws SQLException
/*    */   {
/* 32 */     return new StructDescriptor(fulName, connAgent);
/*    */   }
/*    */   
/*    */   public StructDescriptor(TypeDescriptor desc) {
/* 36 */     this.m_typeDesc = desc;
/*    */   }
/*    */   
/*    */   public int getSize() {
/* 40 */     return this.m_typeDesc.m_size;
/*    */   }
/*    */   
/*    */   public int getObjId() {
/* 44 */     return this.m_typeDesc.m_objId;
/*    */   }
/*    */   
/*    */   public void setMTypeDesc(TypeDescriptor typeDesc) {
/* 48 */     this.m_typeDesc = typeDesc;
/*    */   }
/*    */   
/*    */   public TypeDescriptor[] getItemsDesc() {
/* 52 */     return this.m_typeDesc.m_fieldsObj;
/*    */   }
/*    */ }


/* Location:              D:\Program Files\DBMS_20150813\jdbc\Dm7JdbcDriver17.jar!\dm\sql\StructDescriptor.class
 * Java compiler version: 2 (46.0)
 * JD-Core Version:       0.7.1
 */